package com.eclink.asset.domain;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.eclink.asset.common.domain.dto.CommonUserDTO;
import com.eclink.asset.domain.dao.CommonEntity;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * 审核节点
 * 
 * @author chenshixian
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description="审核节点对象")
@Data
@TableName("audit_config_node")
public class AuditConfigNode extends CommonEntity {

    private static final long serialVersionUID = 8559064610844059696L;

    @ApiModelProperty("ID")
    @TableId
    private Integer id;

    @ApiModelProperty("NAME")
    @Excel(name = "NAME")
    private String name;

    @ApiModelProperty("审批人员")
    private String auditUser;

    @TableField(exist = false)
    private List<CommonUserDTO> auditUserList = new ArrayList<>();

    @ApiModelProperty("审批类型")
    private Integer taskType;

    @ApiModelProperty("审批规则")
    private Integer auditRule;

    @ApiModelProperty("任务的步数")
    @Excel(name = "step")
    private Integer step;

    @ApiModelProperty("流程ID")
    private Long configId;

    @ApiModelProperty("删除标志")
    private Integer delFlag = 0;


}
